package com.day0009;
//圆
public class Circle extends Shape{
    public Circle(int r) {
        super(r);
    }


    @Override
    public double perimeter() {
        return 2*Math.PI*getR();
    }

    @Override
    public double area() {
        return Math.PI*getR()*getR();
    }
}
